home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / Developer University / DUProjects / Talker / Sources / Part.h < prev    next >
Encoding:
Text File  |  1996-04-03  |  1.6 KB  |  56 lines  |  [TEXT/CWIE]

  1. //========================================================================================
  2. //    Release Version:    $ ODF 1 $
  3. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  4. //========================================================================================
  5.  
  6. #ifndef PART_H
  7. #define PART_H
  8.  
  9. //=======================================================================
  10. #ifndef DEFINES_K
  11. #include "Defines.k"
  12. #endif
  13.  
  14. // ----- Framework Includes -----
  15. #ifndef FWPART_H
  16. #include "FWPart.h"            // FW_CPart
  17. #endif
  18.  
  19. // ----- Foundation Layer -----
  20. #ifndef FWSTDDEF_H
  21. #include <FWStdDef.h>        // ?
  22. #endif
  23.  
  24. //=======================================================================
  25. const ODValueType    kAppleTEXTScrap = "Apple:OSType:Scrap:TEXT";
  26. const ODValueType    kAppleTEXTfile     = "Apple:OSType:FileType:TEXT";
  27.  
  28. //=======================================================================
  29. class FW_CPart;
  30. class FW_CString;
  31. class FW_CPresentation;
  32. class CTalkerContent;
  33.  
  34. //=======================================================================
  35. class CTalkerPart : public FW_CPart {
  36. public:
  37.     FW_DECLARE_AUTO(CTalkerPart)
  38.                         CTalkerPart(ODPart* odPart);
  39.     virtual             ~CTalkerPart();
  40. // overrides
  41. protected:
  42.     virtual FW_CContent* NewPartContent(Environment* ev);
  43.     virtual void         Initialize(Environment* ev);
  44.     virtual FW_CFrame*    NewFrame(Environment* ev,
  45.                                  ODFrame* odFrame,
  46.                                  FW_CPresentation* presentation,
  47.                                  FW_Boolean fromStorage);
  48. // new members
  49. private:
  50.     FW_CPresentation*    fPresentation;
  51.     CTalkerContent*        fPartContent;
  52. };
  53.  
  54. //=======================================================================
  55. #endif
  56.